#ifndef H_NYMPHAEA_COMM_LOG
#define H_NYMPHAEA_COMM_LOG
/*
 * project: nymphaea
 * module: comm::log
 * purpose: log for system
 * creation date: 2010-MAY-15
 * created by: kaby<entelechie@gmail.com>
 * license: GNU General Public License v3
 */

#ifdef DEBUG

#include <iostream>
#define LOG(x) std::cerr<<__func__<<"() @"<<__FILE__<<":L"<<__LINE__<<" "<<x<<std::endl<<std::flush

#else

#define LOG(x)

#endif

#endif
